#ifndef COLLISION_EVENT_H
#define COLLISION_EVENT_H

#include "Event.hpp"
#include "Side.hpp"

/**
 * This event indicates that the Collision sensor detected a collision.
 */
class CollisionEvent : public Event
{
public:
	/**
	 * CollisionEvent constructor.
	 * @see Side.hpp
	 * @param side the enumerated side the collision occured.
	 */
	CollisionEvent(Side side);

	/**
	 * Returns the type of the event.
	 * @see EventType.hpp
	 * @return EventType of the event.
	 */
	virtual EventType getEventType() const;

	/**
	 * Returns the side the collision occured on.
	 * @see Side.hpp
	 * @return CollisionSide.
	 */
	Side getCollisionSide() const;
private:
	Side side;
};
#endif
